<?php
/**
 * @Author: Marte
 * @Date:   2017-08-07 21:56:45
 * @Last Modified by:   Marte
 * @Last Modified time: 2017-08-13 17:18:23
 */
$_sql1='select * from userregisters where username="'.$username.'"';
$_result=$_mysql->query($_sql1);//返回结果集合
$_assoc=$_result->fetch_assoc();
$_sql2='select picpath,bookname from books order by bookid desc;';
$_result1=$_mysql->query($_sql2);//返回结果集合


?>



<div class="personsouye">
                <div class="total">
                    <i><img src='<?php  echo $_assoc['headicon'];?>' alt=""></i>
                    <div class="total_right">
                        <span class="username"><?php  echo $_assoc['nickname'];?></span><span><img src="images/vip-02.png" alt=""></span>
                        <span class="books"><a href="" title="">我的书架</a></span><a href="" title=""><img src="images/shezhi.png" alt=""></a>
                    </div>
                    <div class="total_bottom">
                        <span class="user">当前账户:<span class="usercen"> <?php  echo $_assoc['username'];?></span></span>
                        <span class="xun">勋章：<span class=""> 无</span></span><span class="phone">绑定手机：<span><?php  echo $_assoc['phone'];?></span></span>
                        <span class="email">绑定邮箱：<span><?php  echo $_assoc['email'];?></span></span>
                    </div>
                </div>

                <div class="sort">
                    <ul>
                        <li><span class="top yue">账户余额</span>
                           <span class="center"><span class="center1"><?php  echo $_assoc['gold'];?></span>轩币</span>
                           <span class="bottom1"><a href="#" title="">立即充值</a></span>
                        </li>
                        <li><span class="top shujia">朕的书架</span>
                           <span class="center"><span class="center1"><?php  echo $_assoc['bookshelf'];?></span>本</span>
                           <span class="bottom1"><a href="allbooks.php" title="">立即添加</a></span></li>
                         <li><span class="top shou">朕的收藏</span>
                           <span class="center"><span class="center1"><?php  echo $_assoc['selectnum'];?></span>收藏</span>
                           <span class="bottom1"><a href="allbooks.php" title="">前往书库</a></span></li>
                        <li class="on"><span class="top quanzi">我的圈子</span>
                           <span class="center"><span class="center1"><?php  echo $_assoc['say'];?></span>说说</span>
                           <span class="bottom1"><a href="" title="">去发表</a></span></li>
                    </ul>
                </div>
                <div class="daily">
                  <span class="daily_title">每日任务<span class="details">亲、完成每日任务，可以领取相应的礼物哦~</span></span>
                  <span class="daily_second">完成度&nbsp;&nbsp;&nbsp;<a href="javascript:;" title="">10</a>/100</span><span></span>
                     <div class="gift">
                         <span><img src="images/gift.png" alt=""></span>
                         <span><img src="images/gift.png" alt=""></span>
                         <span><img src="images/gift.png" alt=""></span>
                         <span><img src="images/gift.png" alt=""></span>
                        <span><img src="images/gift.png" alt=""></span>
                     </div>
                    <div class="gift1">
                         <span>20活跃度可领取</span>
                         <span>40活跃度可领取</span>
                         <span>60活跃度可领取</span>
                         <span>80活跃度可领取</span>
                        <span>100活跃度可领</span>
                     </div>
                </div>


                <div class="tuijian">
                <span>猜您喜欢</span>
                    <ul>
                    <?php
                        for($i=0;$i<5;$i++)
                        {
                            $_assoc1=$_result1->fetch_array();
                            echo '<li><a href="" title=""><img src="'. $_assoc1["picpath"].'" alt=""></a><span><a href="" title="">'.$_assoc1["bookname"].'</a></span></li>';
                        }

                    ?>


                    </ul>
                </div>
            </div>